# @Author   :   yuanxi
# @Time      :  2022/1/11

from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.myPage import myPage
from commen.page.ann.searchPage import searchPage
from commen.page.ann.indexPage import IndexPage
from commen.page.commen.authorizePage import authorizePage
from commen.page.ann.annApplication.selfCheckCoronaPage import selfCheckCoronaPage


class SelfCheckCoronaCase(UIParent):

    @classmethod
    def test_selfCheck(self):
        '''新型肺炎自查校验'''

        myPage.loginByStatu()
        IndexPage.clickIndex()
        searchPage.searchEvent("肺炎自查上报")
        authorizePage.ifAuthorize()

        status = selfCheckCoronaPage.selfCheckIndex()
        asserts.true(status, "新型肺炎自查校验")
